<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
<HEAD>
<meta name=vs_targetSchema content="http://schemas.microsoft.com/intellisense/ie5">
<META NAME="GENERATOR" Content="Microsoft Visual Studio 7.0">
<TITLE></TITLE>
</HEAD>
<BODY>
<INPUT id="txt" onfocus="showList(this,selList)" onblur="hideList(selList)" onpropertychange="searchList(txt,selList)"><BR>
<SELECT id="selList" style="display:none" onchange="setText(txt,this)" size="10">
	<OPTION>ABSDEFG</OPTION>
	<OPTION>BSDEFG</OPTION>
	<OPTION>SDEFGH</OPTION>
	<OPTION>DEFGhi</OPTION>
	<OPTION>EFGhij</OPTION>
	<OPTION>FGHiJk</OPTION>
</SELECT>
</BODY>
</HTML>
<SCRIPT language="javascript">
function searchList(txt,sel){
var re = new RegExp("^"+txt.value,"i");
	for( var i=0,text=txt.value; i < sel.length; i++ ){
		if( !sel[i].text.match(re) )continue;
		sel.onch = sel.onchange;
		sel.onchange = null;
		sel[i].selected = true;
		sel.onchange = sel.onch;
		break;
	}
}
function setText(txt,sel){
	txt.value = sel[sel.selectedIndex].text;
	showList(txt,sel,true);
}
function hideList(sel,thread){
	if( !thread )return setTimeout(function(){hideList(sel,true)},1000);
	showList(null,sel,true);
}
function showList(txt,sel,hide){
	sel.style.display = hide ? "none" : "";
	if( !hide ){
		searchList(txt,sel);
//		txt.select();
	}
}
</SCRIPT>
